Data management method, node, and system for database cluster

ABSTRACT

The present disclosure provides a data management method for a database cluster including a first dual port SSD, a second dual port SSD, a first node, a second node, and a third node, where the first dual port SSD is connected to the first node and the second node, and the second dual port SSD is connected to the second node and the third node; and the first node writes a transaction log to the first dual port SSD, when the first node crashes, the second node acquires the transaction log from the first dual port SSD, and operates, according to the transaction log, data that is stored in the first node, so that, the second node or the third node can use a dual port SSD to read log information of the crashed node, and replace the first node to provide a service externally.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No. PCT/CN2014/092140, filed on Nov. 25, 2014, which claims priority to Chinese Patent Application No. 201410242052.X, filed on May 30, 2014. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties.

TECHNICAL FIELD

The present disclosure relates to the field of databases, and in particular, to a data management method, node, and system for a database cluster.

BACKGROUND

All nodes in a database cluster are connected to a shared disk array, and the shared disk array stores data of all the nodes. If a node in the database cluster crashes, data updated in the node cannot be used for a period of time, causing some services to be affected. A general solution is to update a log of the node to the shared disk array, and when the node crashes, another node reads the log of the node for performing recovery; if another node cannot read the log of the node, the data in the node cannot be restored until the node is restarted, and subsequently, a service is provided externally; such a process is very time-consuming, affecting services. In addition, when log information is updated to the shared disk array, performance of a cluster system can also be greatly affected due to a large quantity of synchronized logs.

SUMMARY

Embodiments of the present disclosure provide a data management method, node, and system for a database cluster, so as to solve a problem that a service is affected due to a time-consuming recovery process of a node after the node crashes.

According to a first aspect, a data management method for a database cluster is provided, where the database cluster includes a first dual port solid state disk SSD, a second dual port solid state disk SSD, a first node, a second node, and a third node, where the first dual port SSD is connected to the first node and the second node, and the second dual port SSD is connected to the second node and the third node; and the method includes:

writing, by the first node, a transaction log to the first dual port SSD, so that in a case in which the first node crashes, the second node acquires the transaction log from the first dual port SSD, and the second node operates, according to the transaction log, data that is stored in the first node before the first node crashes; or

writing, by the first node, a transaction log to the first dual port SSD, so that in a case in which the first node crashes, after the second node acquires the transaction log from the first dual port SSD, the second node sends the transaction log to the third node, and the third node operates data that is stored in the first node before the first node crashes, where

the third node, the first node, and the second node being capable of data transmission with each other.

In a first possible implementation manner of the first aspect, the method further includes:

acquiring, by the first node in a preset period, a transaction log that is after a checkpoint of the first dual port SSD, and archiving, into a shared disk array, the transaction log that is after the checkpoint.

With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the method further includes:

in a case in which both the first node and the second node are database instances, directly performing, by the first node, data transmission with the second node by using the first dual port SSD.

With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, at least one port in the first dual port SSD is a PCIE port; and at least one port in the second dual port SSD is a PCIE port.

With reference to the first aspect or any one of the first to third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the method further includes:

starting, by the second node, another database process to operate the data that is stored in the first node before the first node crashes, where the another database process is independent of an original database process in the second node.

With reference to the first aspect or any one of the first to third possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the method further includes:

starting, by the third node, another database process to operate the data that is stored in the first node before the first node crashes, where the another database process is independent of an original database process in the third node.

According to a second aspect, a first node is provided, where a database cluster includes a first dual port solid state disk SSD, a second dual port solid state disk SSD, the first node, a second node, and a third node, where the first dual port SSD is connected to the first node and the second node, and the second dual port SSD is connected to the second node and the third node; and the first node includes:

a writing unit, configured to write a transaction log to the first dual port SSD, so that in a case in which the first node crashes, the second node acquires the transaction log from the first dual port SSD, and the second node operates, according to the transaction log, data that is stored in the first node before the first node crashes; or

write a transaction log to the first dual port SSD, so that in a case in which the first node crashes, after the second node acquires the transaction log from the first dual port SSD, the second node sends the transaction log to the third node, and the third node operates data that is stored in the first node before the first node crashes, where

the third node, the first node, and the second node being capable of data transmission with each other.

In a first possible implementation manner of the second aspect, the first node further includes:

an acquiring unit, configured to acquire, in a preset period, a transaction log that is after a checkpoint of the first dual port SSD; and

an archiving unit, configured to archive, into a shared disk array, the transaction log that is after the checkpoint.

With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the first node further includes:

a transmission unit, configured to: in a case in which both the first node and the second node are database instances, directly perform data transmission with the second node by using the first dual port SSD.

With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, at least one port in the first dual port SSD is a PCIE port; and at least one port in the second dual port SSD is a PCIE port.

With reference to the second aspect or any one of the first to third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the first node further includes:

a start unit, configured to start another database process to operate the data that is stored in the first node before the first node crashes, where the another database process is independent of an original database process in the second node.

With reference to the second aspect or any one of the first to third possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, the first node further includes:

a start unit, configured to start another database process to operate the data that is stored in the first node before the first node crashes, where the another database process is independent of an original database process in the third node.

According to a third aspect, a data management system for a database cluster is provided, where the database cluster includes a first dual port solid state disk SSD, a second dual port solid state disk SSD, a first node, a second node, and a third node, where the first dual port SSD is connected to the first node and the second node, and the second dual port SSD is connected to the second node and the third node;

the first node is configured to write a transaction log to the first dual port SSD; and

the second node is configured to: in a case in which the first node crashes, acquire the transaction log from the first dual port SSD, and operate, according to the transaction log, data that is stored in the first node before the first node crashes; or

in a case in which the first node crashes, acquire the transaction log from the first dual port SSD, send the transaction log to the third node, and the third node operates, according to the transaction log, data that is stored in the first node before the first node crashes, where

the third node, the first node, and the second node being capable of data transmission with each other.

In a first possible implementation manner of the third aspect, the first node further includes:

an acquiring unit, configured to acquire, in a preset period, a transaction log that is after a checkpoint of the first dual port SSD; and

an archiving unit, configured to archive, into a shared disk array, the transaction log that is after the checkpoint.

With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the first node further includes:

a transmission unit, configured to: in a case in which both the first node and the second node are database instances, directly perform data transmission with the second node by using the first dual port SSD.

With reference to the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, at least one port in the first dual port SSD is a PCIE port; and at least one port in the second dual port SSD is a PCIE port.

With reference to the third aspect or any one of the first to third possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, the first node further includes:

a start unit, configured to start another database process to operate the data that is stored in the first node before the first node crashes, where the another database process is independent of an original database process in the second node.

With reference to the third aspect or any one of the first to third possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect, a start unit is configured to start another database process to operate the data that is stored in the first node before the first node crashes, where the another database process is independent of an original database process in the third node.

The embodiments of the present disclosure provide a data management method for a database cluster, where the database cluster includes a first dual port solid state disk SSD, a second dual port solid state disk SSD, a first node, a second node, and a third node, where the first dual port SSD is connected to the first node and the second node, and the second dual port SSD is connected to the second node and the third node; and the first node writes a transaction log to the first dual port SSD, so that in a case in which the first node crashes, the second node acquires the transaction log from the first dual port SSD, and the second node operates, according to the transaction log, data that is stored in the first node before the first node crashes; or the first node writes a transaction log to the first dual port SSD, so that in a case in which the first node crashes, after the second node acquires the transaction log from the first dual port SSD, the second node sends the transaction log to the third node, and the third node operates data that is stored in the first node before the first node crashes, where data transmission can be performed between the third node, the first node, and the second node, so that when the first node, the second node or the third node can use a dual port SSD to read log information of the crashed node, and after performing recovery, replace the first node to provide a service externally, thereby improving a recovery speed of the cluster, and improving system availability.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments of the present disclosure, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.

FIG. 1 is a structural diagram of a data management system for a database cluster according to an embodiment of the present disclosure;

FIG. 2 is a schematic diagram of a structure of data management for a database cluster according to an embodiment of the present disclosure;

FIG. 3 is a schematic diagram of a structure of data management for a database cluster according to an embodiment of the present disclosure;

FIG. 4 is a schematic diagram of a structure of data management for a database cluster according to an embodiment of the present disclosure;

FIG. 5 is a schematic diagram of a data management method for a database cluster according to an embodiment of the present disclosure;

FIG. 6 is a flowchart of a data management method for a database cluster according to an embodiment of the present disclosure;

FIG. 7 is a structural diagram of apparatuses of a first node according to an embodiment of the present disclosure; and

FIG. 8 is a structural diagram of apparatuses of a first node according to an embodiment of the present disclosure.

DESCRIPTION OF EMBODIMENTS

The following clearly describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are merely some rather than all of the embodiments of the present disclosure.

Referring to FIG. 1, FIG. 1 is a structural diagram of a data management system for a database cluster according to an embodiment of the present disclosure. As shown in FIG. 1, the system includes:

a first dual port solid state disk (SSD) 101, a second dual port SSD102, a first node 103, a second node 104, and a third node 105, where the first dual port SSD 101 is connected to the first node 103 and the second node 104, the second dual port SSD 102 is connected to the second node 104 and the third node 105, and the second node 104 is separately connected to the first dual port SSD101 and the second dual port SSD 102;

the first node 103 is configured to write a transaction log (transaction log) to the first dual port SSD 101; and

the second node 104 is configured to: in a case in which the first node 103 crashes, acquire the transaction log from the first dual port SSD 101, and operate, according to the transaction log, data that is stored in the first node before the first node 103 crashes; or

in a case in which the first node 103 crashes, acquire the transaction log from the first dual port SSD 101, send the transaction log to the third node 105, and the third node 105 operates, according to the transaction log, data that is stored in the first node before the first node 103 crashes, where

data transmission can be performed among the third node 105, the first node 103, and the second node 104.

The first node 103 further includes:

an acquiring unit, configured to acquire, in a preset period, a transaction log that is after a checkpoint of the first dual port SSD; and

an archiving unit, configured to archive, into a shared disk array, the transaction log that is after the checkpoint.

Specifically, referring to FIG. 2 to FIG. 4, FIG. 2 to FIG. 4 are schematic diagrams of structures of data management for a database cluster according to embodiments of the present disclosure. As shown in FIG. 2, a first node generates a transaction log, which is written to an SSD by a background log writing process; the first node regularly reads, from the SSD, a log that is after a checkpoint, and a log archiving process of the first node archives, into a shared disk array, the log that is after the checkpoint; and after recovering by reading the log of the first node by using a first dual port SSD, a second node replaces the first node to work.

As shown in FIG. 3, after the first node crashes, the second node reads the log of the first node from the first dual port SSD, the second node starts a new database process for performing recovery, and after performing recovery, the second node externally provides a service, and the second node reads the log of the first node by using the first dual port SSD, and transmits the log to another node for performing recovery.

As shown in FIG. 4, after the first node crashes, the second node reads the log of the first node from the SSD, the second node transmits the log to a third node, and after acquiring data of the first node and after performing a recovery operation, the third node externally provides a service.

The first node further includes:

a transmission unit, configured to: in a case in which both the first node and the second node are database instances, directly perform data transmission with the second node by using the first dual port SSD.

Specifically, as shown in FIG. 5, FIG. 5 is a schematic diagram of a data management method for a database cluster according to an embodiment of the present disclosure.

As shown in FIG. 5, in a case in which both a first node and a second node are database instances, data transmission may be directly performed by using a dual port, so as to avoid a problem of a low data transmission speed caused by a case such as network congestion.

Optionally, at least one port in the first dual port SSD is a PCIE port; and at least one port in the second dual port SSD is a PCIE port.

Optionally, the first node further includes:

a start unit, configured to start another database process to operate data that is stored in the first node before the first node crashes, where the another database process is independent of an original database process in the second node.

Optionally, the first node further includes:

a start unit is configured to start another database process to operate data that is stored in the first node before the first node crashes, where the another database process is independent of an original database process in a third node.

This embodiment of the present disclosure provides a data management system for a database cluster, where the database cluster includes a first dual port SSD, a second dual port SSD, a first node, a second node, and a third node, where the first dual port SSD is connected to the first node and the second node, and the second dual port SSD is connected to the second node and the third node; and the first node writes a transaction log to the first dual port SSD, so that in a case in which the first node crashes, the second node acquires the transaction log from the first dual port SSD, and the second node operates, according to the transaction log, data that is stored in the first node before the first node crashes; or the first node writes a transaction log to the first dual port SSD, so that in a case in which the first node crashes, after the second node acquires the transaction log from the first dual port SSD, the second node sends the transaction log to the third node, and the third node operates data that is stored in the first node before the first node crashes, where the third node, the first node, and the second node being capable of data transmission with each other, so that when the first node crashes, the second node or the third node can use a dual port SSD to read log information of the crashed node, and after performing recovery, replace the first node to provide a service externally, thereby improving a recovery speed of the cluster, and improving system availability.

Referring to FIG. 6, FIG. 6 is a flowchart of a data management method for a database cluster according to an embodiment of the present disclosure. A first dual port SSD is connected to a first node and a second node, a second dual port SSD is connected to the second node and a third node, and the second node is separately connected to the first dual port SSD and the second dual port SSD. The method includes:

Step 601: The first node writes a transaction log to the first dual port SSD, so that in a case in which the first node crashes, the second node acquires the transaction log from the first dual port SSD, and the second node operates, according to the transaction log, data that is stored in the first node before the first node crashes; or

the first node writes a transaction log to the first dual port SSD, so that in a case in which the first node crashes, after the second node acquires the transaction log from the first dual port SSD, the second node sends the transaction log to the third node, and the third node operates data that is stored in the first node before the first node crashes, where

the third node, the first node, and the second node being capable of data transmission with each other.

The method further includes:

acquiring, by the first node in a preset period, a transaction log that is after a checkpoint of the first dual port SSD, and archiving, into a shared disk array, the transaction log that is after the checkpoint.

The method further includes:

in a case in which both the first node and the second node are database instances, directly performing, by the first node, data transmission with the second node by using the first dual port SSD.

At least one port in the first dual port SSD is a PCIE port; and at least one port in the second dual port SSD is a PCIE port.

For details, refer to the descriptions of FIG. 2 to FIG. 4.

The method further includes:

starting, by the second node, another database process to operate the data that is stored in the first node before the first node crashes, where the another database process is independent of an original database process in the second node.

The method further includes:

starting, by the third node, another database process to operate the data that is stored in the first node before the first node crashes, where the another database process is independent of an original database process in the third node.

For details, refer to the description of FIG. 5.

This embodiment of the present disclosure provides a data management method for a database cluster, where the database cluster includes a first dual port solid state disk SSD, a second dual port SSD, a first node, a second node, and a third node, where the first dual port SSD is connected to the first node and the second node, and the second dual port SSD is connected to the second node and the third node; and the first node writes a transaction log to the first dual port SSD, so that in a case in which the first node crashes, the second node acquires the transaction log from the first dual port SSD, and the second node operates, according to the transaction log, data that is stored in the first node before the first node crashes; or the first node writes a transaction log to the first dual port SSD, so that in a case in which the first node crashes, after the second node acquires the transaction log from the first dual port SSD, the second node sends the transaction log to the third node, and the third node operates data that is stored in the first node before the first node crashes, where the third node, the first node, and the second node being capable of data transmission with each other, so that when the first node crashes, the second node or the third node can use a dual port SSD to read log information of the crashed node, and after performing recovery, replace the first node to provide a service externally, thereby improving a recovery speed of the cluster, and improving system availability.

Referring to FIG. 7, FIG. 7 is a structural diagram of apparatuses of a first node according to an embodiment of the present disclosure. As shown in FIG. 7,

a database cluster includes a first dual port solid state disk SSD, a second dual port SSD, a first node, a second node, and a third node, where the first dual port SSD is connected to the first node and the second node, and the second dual port SSD is connected to the second node and the third node; and the first node includes:

a writing unit 701, configured to write a transaction log to the first dual port SSD, so that in a case in which the first node crashes, the second node acquires the transaction log from the first dual port SSD, and the second node operates, according to the transaction log, data that is stored in the first node before the first node crashes; or

write a transaction log to the first dual port SSD, so that in a case in which the first node crashes, after the second node acquires the transaction log from the first dual port SSD, the second node sends the transaction log to the third node, and the third node operates data that is stored in the first node before the first node crashes, where

the third node, the first node, and the second node being capable of data transmission with each other.

Optionally, the first node further includes:

an acquiring unit, configured to acquire, in a preset period, a transaction log that is after a checkpoint of the first dual port SSD; and

an archiving unit, configured to archive, into a shared disk array, the transaction log that is after the checkpoint.

Optionally, the first node further includes:

a transmission unit, configured to: in a case in which both the first node and the second node are database instances, directly perform data transmission with the second node by using the first dual port SSD.

At least one port in the first dual port SSD is a PCIE port; and at least one port in the second dual port SSD is a PCIE port.

Optionally, the first node further includes:

a start unit, configured to start another database process to operate the data that is stored in the first node before the first node crashes, where the another database process is independent of an original database process in the second node.

Optionally, the first node further includes:

a start unit is configured to start another database process to operate the data that is stored in the first node before the first node crashes, where the another database process is independent of an original database process in the third node.

For details, refer to the descriptions of FIG. 2 to FIG. 5.

This embodiment of the present disclosure provides a first node, where the first node writes a transaction log to a first dual port SSD, so that in a case in which the first node crashes, a second node acquires the transaction log from the first dual port SSD, and the second node operates, according to the transaction log, data that is stored in the first node before the first node crashes; or the first node writes a transaction log to the first dual port SSD, so that in a case in which the first node crashes, after the second node acquires the transaction log from the first dual port SSD, the second node sends the transaction log to a third node, and the third node operates data that is stored in the first node before the first node crashes, where the third node, the first node, and the second node being capable of data transmission with each other, so that when the first node crashes, the second node or the third node can use a dual port SSD to read log information of the crashed node, and after performing recovery, replace the first node to provide a service externally, thereby improving a recovery speed of the cluster, and improving system availability.

FIG. 8 is a structural diagram of apparatuses of a first node according to an embodiment of the present disclosure. Referring to FIG. 8, FIG. 8 shows a first node 800 according to an embodiment of the present disclosure, and a specific embodiment of the present disclosure does not limit specific implementation of the first node. The first node 800 includes:

a processor (processor) 801, a communications interface (Communications Interface) 802, a memory (memory) 803, and a bus 804.

The processor 801, the communications interface 802, and the memory 803 complete mutual communication by using the bus 804.

The communications interface 802 is configured to communicate with another device; and

the processor 801 is configured to perform a program.

Specifically, the program may include program code, and the program code includes a computer operation instruction.

The processor 801 may be a central processing unit (CPU), or an application-specific integrated circuit Application-Specific Integrated Circuit (ASIC), or is configured as one or more integrated circuits for implementing the embodiments of the present disclosure.

The memory 803 is configured to store a program. The memory 803 may be a volatile memory (volatile memory), such as a random access memory (RAM), or a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory, ROM), a flash memory (flash memory), a hard disk drive (hard disk drive, HDD), or a solid state disk SSD). The processor 801 performs the following method according to a program instruction stored in the memory 803:

writing, by the first node, a transaction log to a first dual port SSD, so that in a case in which the first node crashes, a second node acquires the transaction log from the first dual port SSD, and the second node operates, according to the transaction log, data that is stored in the first node before the first node crashes; or

writing, by the first node, a transaction log to a first dual port SSD, so that in a case in which the first node crashes, after a second node acquires the transaction log from the first dual port SSD, the second node sends the transaction log to a third node, and the third node operates data that is stored in the first node before the first node crashes, where

the third node, the first node, and the second node being capable of data transmission with each other.

The method further includes:

acquiring, by the first node in a preset period, a transaction log that is after a checkpoint of the first dual port SSD, and archiving, into a shared disk array, the transaction log that is after the checkpoint.

The method further includes:

in a case in which both the first node and the second node are database instances, directly performing, by the first node, data transmission with the second node by using the first dual port SSD.

At least one port in the first dual port SSD is a PCIE port; and at least one port in the second dual port SSD is a PCIE port.

The method further includes:

starting, by the second node, another database process to operate the data that is stored in the first node before the first node crashes, where the another database process is independent of an original database process in the second node.

The method further includes:

starting, by the third node, another database process to operate the data that is stored in the first node before the first node crashes, where the another database process is independent of an original database process in the third node.

This embodiment of the present disclosure provides a first node, where the first node writes a transaction log to the first dual port SSD, so that in a case in which the first node crashes, the second node acquires the transaction log from the first dual port SSD, and the second node operates, according to the transaction log, data that is stored in the first node before the first node crashes; or the first node writes a transaction log to the first dual port SSD, so that in a case in which the first node crashes, after the second node acquires the transaction log from the first dual port SSD, the second node sends the transaction log to a third node, and the third node operates data that is stored in the first node before the first node crashes, where the third node, the first node, and the second node being capable of data transmission with each other, so that when the first node crashes, the second node or the third node can use a dual port SSD to read log information of the crashed node, and after performing recovery, replace the first node to provide a service externally, thereby improving a recovery speed of the cluster, and improving system availability.

The foregoing descriptions are merely exemplary and specific implementation manners of the present disclosure, but are not intended to limit the protection scope of the present disclosure. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present disclosure shall fall within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims. 

What is claimed is:
 1. A data management method for a database cluster, wherein the database cluster comprises a first dual port solid state disk (SSD), a second dual port SSD, a first node, a second node, and a third node, wherein the first dual port SSD is connected to the first node and the second node, and the second dual port SSD is connected to the second node and the third node; and the method comprises: writing, by the first node, a transaction log to the first dual port SSD, so that in a case in which the first node crashes, the second node acquires the transaction log from the first dual port SSD, and operates, according to the transaction log, data that is stored in the first node before the first node crashes; or writing, by the first node, a transaction log to the first dual port SSD, so that in a case in which the first node crashes, the second node acquires the transaction log from the first dual port SSD, and sends the transaction log to the third node, and the third node operates data that is stored in the first node before the first node crashes, wherein the third node, the first node, and the second node being capable of data transmission with each other.
 2. The method according to claim 1, wherein the method further comprises: acquiring, by the first node in a preset period, a transaction log that is after a checkpoint of the first dual port SSD, and archiving, into a shared disk array, the transaction log that is after the checkpoint.
 3. The method according to claim 1, wherein the method further comprises: when both the first node and the second node are database instances, directly performing, by the first node, data transmission with the second node by using the first dual port SSD.
 4. The method according to claim 3, wherein at least one port in the first dual port SSD is a PCIE port; and at least one port in the second dual port SSD is a PCIE port.
 5. The method according to claim 1, wherein the method further comprises: starting, by the second node, another database process to operate the data that is stored in the first node before the first node crashes, wherein the another database process is independent of an original database process in the second node.
 6. The method according to claim 1, wherein the method further comprises: starting, by the third node, another database process to operate the data that is stored in the first node before the first node crashes, wherein the another database process is independent of an original database process in the third node.
 7. A first node for data management in a database cluster, wherein the database cluster comprises a first dual port solid state disk (SSD), a second dual port SSD, the first node, a second node, and a third node, wherein the first dual port SSD is connected to the first node and the second node, and the second dual port SSD is connected to the second node and the third node; and the first node comprises: a processor, a communications interface, and a memory being capable of mutual communication via a bus, wherein the processor is configured to run executable program stored in the memory, so as to: write a transaction log to the first dual port SSD, so that when the first node crashes, the second node reads the transaction log from the first dual port SSD, and operates, according to the transaction log, data that is stored in the first node before the first node crashes; or write a transaction log to the first dual port SSD, so that when the first node crashes, the second node reads the transaction log from the first dual port SSD, and sends the transaction log to the third node, and the third node operates data that is stored in the first node before the first node crashes, wherein the third node, the first node, and the second node being capable of data transmission with each other.
 8. The first node according to claim 7, wherein the processor is further configured to run executable program stored in the memory, so as to: acquire, in a preset period, a transaction log that is after a checkpoint of the first dual port SSD; and archive, into a shared disk array, the transaction log that is after the checkpoint.
 9. The first node according to claim 7, wherein the processor is further configured to run executable program stored in the memory, so as to: directly perform data transmission with the second node by using the first dual port SSD when both the first node and the second node are database instances.
 10. The first node according to claim 9, wherein at least one port in the first dual port SSD is a PCIE port; and at least one port in the second dual port SSD is a PCIE port.
 11. The first node according to claim 7, wherein the processor is further configured to run executable program stored in the memory, so as to: start another database process to operate the data that is stored in the first node before the first node crashes, wherein the another database process is independent of an original database process in the second node.
 12. The first node according to claim 7, wherein the processor is further configured to run executable program stored in the memory, so as to: start another database process to operate the data that is stored in the first node before the first node crashes, wherein the another database process is independent of an original database process in the third node.
 13. A data management system, comprising: a first dual port solid state disk (SSD), a second dual port SSD, a first node, a second node, and a third node, wherein the first dual port SSD is connected to the first node and the second node, and the second dual port SSD is connected to the second node and the third node; the first node is configured to write a transaction log to the first dual port SSD; and the second node is configured to: acquire the transaction log from the first dual port SSD when the first node crashes, and operate, according to the transaction log, data that is stored in the first node before the first node crashes; or acquire the transaction log from the first dual port SSD when the first node crashes, and send the transaction log to the third node, and the third node operates, according to the transaction log, data that is stored in the first node before the first node crashes, wherein the third node, the first node, and the second node being capable of data transmission with each other.
 14. The system according to claim 13, wherein the first node is further configured to: acquire, in a preset period, a transaction log that is after a checkpoint of the first dual port SSD; and archive, into a shared disk array, the transaction log that is after the checkpoint.
 15. The system according to claim 13, wherein the first node is further configured to: directly perform data transmission with the second node by using the first dual port SSD when both the first node and the second node are database instances.
 16. The system according to claim 15, wherein at least one port in the first dual port SSD is a PCIE port; and at least one port in the second dual port SSD is a PCIE port.
 17. The system according to claim 13, wherein the first node is further configured to: start another database process to operate the data that is stored in the first node before the first node crashes, wherein the another database process is independent of an original database process in the second node.
 18. The system according to claim 13, wherein the first node is further configured to: start another database process to operate the data that is stored in the first node before the first node crashes, wherein the another database process is independent of an original database process in the third node. 